﻿@*
If we create a custom template that has the same name as one of the built-in templates, the MVC
Framework will use the custom version in preference to the built-in one
*@

@* 
Built-In Display Templates

The system has built-in support for 9 display template names: 
“Boolean”, “Decimal”, “EmailAddress”, “HiddenInput”, “Html”, “Object”, “String”, “Text”, and “Url”. 
Two of these (“Text” and “String”) have the same implementation. Some of these have counterparts in the editor templates, 
and some do not.
 *@

@model bool?
@if (ViewData.ModelMetadata.IsNullableValueType && Model == null)
{
    @:(True) (False) <b>(Not Set)</b>
}
else if (Model.Value)
{
    @:<b>(True)</b> (False) (Not Set)
}
else
{
    @:(True) <b>(False)</b> (Not Set)
}